﻿using System;
using Styx.Helpers;
using Styx.Plugins;
using Styx.WoWInternals.WoWObjects;
using Styx.Common;

namespace Ringo
{
    public partial class Ringo
    {
        public class RingoWhereAmI : HBPlugin
        {
            #region definitions
            private static string SubversionRevision { get { return ("$Rev: 99 $"); } }
            public override string Name { get { return "Ringo Where Am I"; } }
            public override string Author { get { return "pbettell"; } }
            public override Version Version { get { return new Version(1, 0, 0, 0); } }
            public override string ButtonText { get { return "Tell Me"; } }
            public override bool WantButton { get { return true; } }
            public WoWUnit Me = Styx.StyxWoW.Me;
            public override void OnButtonPress()
            {
                Logging.Write("<Hotspot X=\"" + Me.Location.X.ToString() + "\" Y=\"" + Me.Location.Y.ToString() + "\" Z=\"" + Me.Location.Z.ToString() + "\" />");
            }
            #endregion
            public override void Initialize()
            {
                NLog(Name.ToString() + " - " + SubversionRevision + " initialized.");
            }
            public override void Pulse()
            {
            }
        }
    }
}